package com.download.web.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.download.backstage.entity.ThirdAccount;
import com.download.web.entity.SysThirdAccount;
import com.download.web.entity.model.Page;
import com.download.web.entity.model.Result;

import java.util.Map;

/**
 * @description:
 * @author: cmy
 * @create: 2019-02-28 14:12
 **/
public interface ISysThirdAccountService extends IService<SysThirdAccount> {

    Page<ThirdAccount> thirdAccountListPage(Integer pageIndex, Integer pageSize);

    Result addThirdAccount(SysThirdAccount thirdAccount);

    Result updateThirdAccount(SysThirdAccount thirdAccount);

    //微博登录回调
    Map<String,Object> weiboLogin(String code);

    //qq登录回调
    Map<String,Object> qqLoginCallback(String code);

}
